|
@@ -15,7 +15,7 @@
|
|
|
:disabled="display"
|
|
|
remote
|
|
|
placeholder="请选择"
|
|
|
- style="width:100%"
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in optionsCus"
|
|
@@ -56,7 +56,7 @@
|
|
|
remote
|
|
|
@change="typeChanged"
|
|
|
placeholder="请选择"
|
|
|
- style="width:100%"
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in options"
|
|
@@ -72,12 +72,20 @@
|
|
|
<el-row class="my-row">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="沟通主要内容" prop="content">
|
|
|
- <el-input v-model="dataForm.content" :disabled="display" type="textarea"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="dataForm.content"
|
|
|
+ :disabled="display"
|
|
|
+ type="textarea"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="备注">
|
|
|
- <el-input v-model="dataForm.notes" :disabled="display" type="textarea"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="dataForm.notes"
|
|
|
+ :disabled="display"
|
|
|
+ type="textarea"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -85,7 +93,7 @@
|
|
|
<el-col :span="12">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
|
- :displayStar=false
|
|
|
+ :displayStar="false"
|
|
|
:title="'技术资料'"
|
|
|
:accept="'*'"
|
|
|
:file-obj-list="attachListTechnical"
|
|
@@ -95,7 +103,7 @@
|
|
|
<el-col :span="12">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
|
- :displayStar=false
|
|
|
+ :displayStar="false"
|
|
|
:title="'数模/图纸'"
|
|
|
:accept="'*'"
|
|
|
:file-obj-list="attachListDrawing"
|
|
@@ -103,11 +111,11 @@
|
|
|
/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row class="my-row" style="margin:10px 0">
|
|
|
+ <el-row class="my-row" style="margin: 10px 0">
|
|
|
<el-col :span="12">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
|
- :displayStar=false
|
|
|
+ :displayStar="false"
|
|
|
:title="'沟通表原件'"
|
|
|
:accept="'*'"
|
|
|
:file-obj-list="attachList"
|
|
@@ -117,7 +125,7 @@
|
|
|
<el-col :span="12">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
|
- :displayStar=false
|
|
|
+ :displayStar="false"
|
|
|
:title="'其他附件'"
|
|
|
:accept="'*'"
|
|
|
:file-obj-list="attachListOther"
|
|
@@ -258,6 +266,12 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="工单类型"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{
|
|
|
+ taskTypeOption.find((t) => t.value == scope.row.taskType)
|
|
|
+ .label
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="taskName"
|
|
@@ -273,6 +287,12 @@
|
|
|
align="center"
|
|
|
label="级别"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{
|
|
|
+ rankTypeOption.find((t) => t.value == scope.row.rank)
|
|
|
+ .label
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="content"
|
|
@@ -351,7 +371,11 @@
|
|
|
>
|
|
|
</span>
|
|
|
<add-or-update v-if="inboundVisible" ref="inbound" @addItem="addItem" />
|
|
|
- <worder-add-or-update v-if="worderVisible" ref="worder" />
|
|
|
+ <worder-add-or-update
|
|
|
+ v-if="worderVisible"
|
|
|
+ ref="worder"
|
|
|
+ @submit="addWorderItem"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -383,14 +407,27 @@ export default {
|
|
|
options: [],
|
|
|
optionsCus: [],
|
|
|
dataList: [],
|
|
|
- attachListTechnical: [],//技术资料
|
|
|
- attachListDrawing: [],//数模/图纸
|
|
|
- attachList: [],//沟通表原件
|
|
|
- attachListOther: [],//其他附件
|
|
|
+ attachListTechnical: [], //技术资料
|
|
|
+ attachListDrawing: [], //数模/图纸
|
|
|
+ attachList: [], //沟通表原件
|
|
|
+ attachListOther: [], //其他附件
|
|
|
id: 0,
|
|
|
cusRCommProductVOS: [],
|
|
|
workInfoList: [],
|
|
|
dataForm: {},
|
|
|
+ taskTypeOption: [
|
|
|
+ { label: "开始", value: "start" },
|
|
|
+ { label: "生产", value: "produce" },
|
|
|
+ { label: "检验", value: "check" },
|
|
|
+ { label: "总检", value: "t-check" },
|
|
|
+ { label: "结束", value: "end" },
|
|
|
+ { label: "常规", value: "routine" },
|
|
|
+ ],
|
|
|
+ rankTypeOption: [
|
|
|
+ { label: "普通", value: 1 },
|
|
|
+ { label: "紧急", value: 2 },
|
|
|
+ { label: "加急", value: 3 },
|
|
|
+ ],
|
|
|
dataRule: {
|
|
|
cusId: [
|
|
|
{ required: true, message: "客户名称不能为空", trigger: "blur" },
|
|
@@ -537,6 +574,10 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ //添加工单
|
|
|
+ addWorderItem(item) {
|
|
|
+ this.workInfoList.push({ ...item });
|
|
|
+ },
|
|
|
uploadSuccessTechnical(fileList) {
|
|
|
this.attachListTechnical = fileList;
|
|
|
},
|
|
@@ -559,12 +600,12 @@ export default {
|
|
|
1
|
|
|
);
|
|
|
},
|
|
|
- worderAdd (){
|
|
|
+ worderAdd() {
|
|
|
this.worderVisible = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.worder.init();
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|