|
@ -60,6 +60,78 @@ |
|
|
<label slot="label">明 细 数:</label> |
|
|
<label slot="label">明 细 数:</label> |
|
|
<el-input v-model="form.detail_count" size="mini" disabled style="width: 210px" /> |
|
|
<el-input v-model="form.detail_count" size="mini" disabled style="width: 210px" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否刻字"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.is_lettering" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in ifType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否套冒"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.is_risking" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in ifType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否裹膜"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.is_coating" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in ifType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否捆扎"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.is_strapping" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in ifType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否贴标"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.is_labeling" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in ifType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="上料口"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.feeding_mouth" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in feeding_mouthType" :key="item.label" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item label="备注" prop="remark"> |
|
|
<el-form-item label="备注" prop="remark"> |
|
|
<label slot="label">备 注:</label> |
|
|
<label slot="label">备 注:</label> |
|
|
<el-input v-model="form.remark" style="width: 380px;" rows="2" type="textarea" :disabled="crud.status.view > 0" /> |
|
|
<el-input v-model="form.remark" style="width: 380px;" rows="2" type="textarea" :disabled="crud.status.view > 0" /> |
|
@ -217,13 +289,13 @@ |
|
|
<!-- <span v-show="scope.row.edit">{{ scope.row.priority }}</span>--> |
|
|
<!-- <span v-show="scope.row.edit">{{ scope.row.priority }}</span>--> |
|
|
<!-- </template>--> |
|
|
<!-- </template>--> |
|
|
<!-- </el-table-column>--> |
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column prop="template_id" label="上传模板" align="center" width="200px"> |
|
|
<!-- <el-table-column prop="template_id" label="上传模板" align="center" width="200px">--> |
|
|
<template scope="scope"> |
|
|
<!-- <template scope="scope">--> |
|
|
<el-input v-model="scope.row.template_id" size="mini" style="width: 140px" disabled> |
|
|
<!-- <el-input v-model="scope.row.template_id" size="mini" style="width: 140px" disabled>--> |
|
|
<el-button slot="append" icon="el-icon-plus" @click="openDialog(scope)" /> |
|
|
<!-- <el-button slot="append" icon="el-icon-plus" @click="openDialog(scope)" />--> |
|
|
</el-input> |
|
|
<!-- </el-input>--> |
|
|
</template> |
|
|
<!-- </template>--> |
|
|
</el-table-column> |
|
|
<!-- </el-table-column>--> |
|
|
|
|
|
|
|
|
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="170" fixed="right"> |
|
|
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="170" fixed="right"> |
|
|
<template scope="scope"> |
|
|
<template scope="scope"> |
|
@ -310,8 +382,15 @@ import { mapGetters } from 'vuex' |
|
|
import CustomerDtl from '@/views/acs/order/CustomerDialog' |
|
|
import CustomerDtl from '@/views/acs/order/CustomerDialog' |
|
|
import CRUD, { crud, form } from '@crud/crud' |
|
|
import CRUD, { crud, form } from '@crud/crud' |
|
|
import { get } from '@/api/system/dictDetail' |
|
|
import { get } from '@/api/system/dictDetail' |
|
|
const defaultForm = { tableData: [], order_code: null, material_code: null, material_spec: null, |
|
|
const defaultForm = { |
|
|
outer_diameter: null, wall_thickness: null, detail_count: 0 } |
|
|
tableData: [], order_code: null, material_code: null, material_spec: null, |
|
|
|
|
|
outer_diameter: null, wall_thickness: null, detail_count: 0, is_strapping: '1', |
|
|
|
|
|
is_risking: '1', |
|
|
|
|
|
is_labeling: '1', |
|
|
|
|
|
is_coating: '1', |
|
|
|
|
|
is_lettering: '1', |
|
|
|
|
|
feeding_mouth: '3' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'AddDialog', |
|
|
name: 'AddDialog', |
|
@ -363,6 +442,35 @@ export default { |
|
|
value: '2' |
|
|
value: '2' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
ifType: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '否', |
|
|
|
|
|
value: '0' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '是', |
|
|
|
|
|
value: '1' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
feeding_mouthType: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'A侧', |
|
|
|
|
|
value: '1' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'B侧', |
|
|
|
|
|
value: '2' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '两侧', |
|
|
|
|
|
value: '3' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
is_strapping: '1', |
|
|
|
|
|
is_risking: '1', |
|
|
|
|
|
is_labeling: '1', |
|
|
|
|
|
is_coating: '1', |
|
|
|
|
|
is_lettering: '1', |
|
|
billtypelist: [], |
|
|
billtypelist: [], |
|
|
rules: { |
|
|
rules: { |
|
|
material_code: [ |
|
|
material_code: [ |
|
@ -402,7 +510,7 @@ export default { |
|
|
debugger |
|
|
debugger |
|
|
crudProduceshiftorder.selectTemplateList().then(data => { |
|
|
crudProduceshiftorder.selectTemplateList().then(data => { |
|
|
this.templateList = data |
|
|
this.templateList = data |
|
|
}), |
|
|
}) |
|
|
// 获取区域类型 |
|
|
// 获取区域类型 |
|
|
get('color_type').then(data => { |
|
|
get('color_type').then(data => { |
|
|
this.colortypeList = data.content |
|
|
this.colortypeList = data.content |
|
@ -421,6 +529,15 @@ export default { |
|
|
this.form.length = null |
|
|
this.form.length = null |
|
|
this.form.detail_count = null |
|
|
this.form.detail_count = null |
|
|
this.form.qty = null |
|
|
this.form.qty = null |
|
|
|
|
|
this.form.is_risking = null |
|
|
|
|
|
this.form.is_strapping = null |
|
|
|
|
|
this.form.is_labeling = null |
|
|
|
|
|
this.form.is_coating = null |
|
|
|
|
|
this.form.is_lettering = null |
|
|
|
|
|
this.form.outer_diameter = null |
|
|
|
|
|
this.form.alloy = null |
|
|
|
|
|
this.form.temper = null |
|
|
|
|
|
this.form.wall_thickness = null |
|
|
this.$emit('AddChanged') |
|
|
this.$emit('AddChanged') |
|
|
}, |
|
|
}, |
|
|
tableChanged2(row) { |
|
|
tableChanged2(row) { |
|
@ -433,7 +550,6 @@ export default { |
|
|
this.form.length = row.length |
|
|
this.form.length = row.length |
|
|
}, |
|
|
}, |
|
|
tableChanged3(row) { |
|
|
tableChanged3(row) { |
|
|
debugger |
|
|
|
|
|
this.nowrow.cust_code = row.cust_code |
|
|
this.nowrow.cust_code = row.cust_code |
|
|
this.nowrow.cust_id = row.cust_id |
|
|
this.nowrow.cust_id = row.cust_id |
|
|
this.nowrow.cust_name = row.cust_name |
|
|
this.nowrow.cust_name = row.cust_name |
|
@ -517,7 +633,6 @@ export default { |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
}, |
|
|
}, |
|
|
handleSuccess(files, fileList) { |
|
|
handleSuccess(files, fileList) { |
|
|
debugger |
|
|
|
|
|
this.dtlJson.template_id = files.id |
|
|
this.dtlJson.template_id = files.id |
|
|
const arr = this.form.tableData |
|
|
const arr = this.form.tableData |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|