Compare commits

..

No commits in common. "2ab686a79799463c5d26b387096e5325f7a86cef" and "887390cf91933d08c291e0f40275c1d8adc69f82" have entirely different histories.

3 changed files with 14 additions and 53 deletions

View File

@ -92,8 +92,8 @@
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="物料计算方式" prop="materialMethod"> <el-form-item label="物料计算方式" prop="materialMethod">
<el-radio-group v-model="form.materialMethod" disabled> <el-radio-group v-model="form.materialMethod" disabled>
<el-radio :label="1">产品基础BOM</el-radio> <el-radio :label="1">产品基础</el-radio>
<el-radio :label="2">工艺扩展BOM</el-radio> <el-radio :label="2">工艺扩展</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -24,7 +24,7 @@
<el-option <el-option
v-for="item in productList" v-for="item in productList"
:key="item.id" :key="item.id"
:label="item.name+' | '+(item.specifications || '')" :label="item.name+' | '+item.specifications"
:value="item.id"> :value="item.id">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.specifications }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.specifications }}</span>
@ -41,7 +41,7 @@
</el-col> </el-col>
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="客户" prop="customerId"> <el-form-item label="客户" prop="customerId">
<el-select v-model="form.customerId" placeholder="请选择" style="width: 100%;" clearable> <el-select v-model="form.customerId" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="item in customerList" v-for="item in customerList"
:key="item.id" :key="item.id"
@ -55,7 +55,7 @@
<el-row> <el-row>
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-select v-model="form.priority" placeholder="请选择" style="width: 100%;" clearable> <el-select v-model="form.priority" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="item in getDictDatas(DICT_TYPE.ORDER_PRIORITY)" v-for="item in getDictDatas(DICT_TYPE.ORDER_PRIORITY)"
:key="item.value" :key="item.value"
@ -67,7 +67,7 @@
</el-col> </el-col>
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="包装规格" prop="packSpec"> <el-form-item label="包装规格" prop="packSpec">
<el-select v-model="form.packSpec" placeholder="请选择" style="width: 100%;" clearable> <el-select v-model="form.packSpec" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="item in getDictDatas(DICT_TYPE.PACK_SPEC)" v-for="item in getDictDatas(DICT_TYPE.PACK_SPEC)"
:key="item.value" :key="item.value"
@ -86,7 +86,7 @@
</el-col> </el-col>
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="关联工艺" prop="processFlowId"> <el-form-item label="关联工艺" prop="processFlowId">
<el-select v-model="form.processFlowId" placeholder="请选择" style="width: 100%;" clearable @change="processFlowIdChange"> <el-select v-model="form.processFlowId" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="item in processFlowList" v-for="item in processFlowList"
:key="item.id" :key="item.id"
@ -100,9 +100,9 @@
<el-row> <el-row>
<el-col :span='12'> <el-col :span='12'>
<el-form-item label="物料计算方式" prop="materialMethod"> <el-form-item label="物料计算方式" prop="materialMethod">
<el-radio-group v-model="form.materialMethod" @change='materialMethodChange'> <el-radio-group v-model="form.materialMethod">
<el-radio :label="1">产品基础BOM</el-radio> <el-radio :label="1">产品基础</el-radio>
<el-radio :label="2">工艺扩展BOM</el-radio> <el-radio :label="2">工艺扩展</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -240,20 +240,6 @@ export default {
} }
} }
}, },
//
materialMethodChange(val) {
if (val === 2 && !this.form.processFlowId) {
this.form.materialMethod = 1
this.$modal.msgError("请先选择关联工艺");
}
},
//
processFlowIdChange(val) {
console.log(val)
if (!val) {
this.form.materialMethod = 1
}
},
submitForm() { submitForm() {
this.$refs['orderAddForm'].validate((valid) => { this.$refs['orderAddForm'].validate((valid) => {
if (valid) { if (valid) {

View File

@ -194,22 +194,12 @@ export default {
type: 'add', type: 'add',
btnName: '新增工单', btnName: '新增工单',
showParam: { showParam: {
type: '|', type: '&',
data: [ data: [
{ {
type: 'equal', type: 'equal',
name: 'status', name: 'status',
value: 1 value: 1
},
{
type: 'equal',
name: 'status',
value: 2
},
{
type: 'equal',
name: 'status',
value: 3
} }
] ]
} }
@ -220,22 +210,12 @@ export default {
type: 'bind', type: 'bind',
btnName: '绑定工单', btnName: '绑定工单',
showParam: { showParam: {
type: '|', type: '&',
data: [ data: [
{ {
type: 'equal', type: 'equal',
name: 'status', name: 'status',
value: 1 value: 1
},
{
type: 'equal',
name: 'status',
value: 2
},
{
type: 'equal',
name: 'status',
value: 3
} }
] ]
} }
@ -244,19 +224,14 @@ export default {
this.$auth.hasPermi('base:order-manage:bindWorkOrder') this.$auth.hasPermi('base:order-manage:bindWorkOrder')
? { ? {
type: 'complete', type: 'complete',
btnName: '完成单', btnName: '完成单',
showParam: { showParam: {
type: '|', type: '&',
data: [ data: [
{ {
type: 'equal', type: 'equal',
name: 'status', name: 'status',
value: 2 value: 2
},
{
type: 'equal',
name: 'status',
value: 3
} }
] ]
} }