|
@@ -15,14 +15,14 @@
|
|
|
<zj-form-module v-else title="采集信息" :form-data="formData" :form-items="INSTALL_pgOrderProductImgs" />
|
|
|
</zj-form-container>
|
|
|
</zj-page-fill>
|
|
|
- <div v-if="detailId" style="box-sizing: border-box;padding: 16px;">
|
|
|
+ <div v-if="detailId" style="box-sizing: border-box; padding: 16px">
|
|
|
<el-button @click="close" size="mini">关闭</el-button>
|
|
|
</div>
|
|
|
</zj-page-container>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { changeOrderGetOrderProduct, changeOrderProductDetail } from "@/api/workOrderPool.js";
|
|
|
+import { changeOrderGetOrderProduct, changeOrderProductDetail } from '@/api/workOrderPool.js'
|
|
|
import ImageUpload from '@/components/file-upload'
|
|
|
export default {
|
|
|
components: {
|
|
@@ -31,17 +31,17 @@ export default {
|
|
|
props: {
|
|
|
id: {
|
|
|
type: [String, Number],
|
|
|
- default: null,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
completeDetailData: [],
|
|
|
- detailId: "",
|
|
|
+ detailId: '',
|
|
|
formData: {
|
|
|
- bugRemark: "",
|
|
|
- detailRemark: "",
|
|
|
- isDefend: "",
|
|
|
+ bugRemark: '',
|
|
|
+ detailRemark: '',
|
|
|
+ isDefend: '',
|
|
|
pgOrderProductDetails: []
|
|
|
}
|
|
|
}
|
|
@@ -56,59 +56,66 @@ export default {
|
|
|
width: 60
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
- return <div style="padding-left:10px">
|
|
|
- <el-button type="text" onClick={() => {
|
|
|
- this.detailId = row.id
|
|
|
- }}>查看</el-button>
|
|
|
- </div>
|
|
|
+ return (
|
|
|
+ <div style="padding-left:10px">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ onClick={() => {
|
|
|
+ this.detailId = row.id
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '品牌名称',
|
|
|
- prop: 'brandName',
|
|
|
+ prop: 'brandName'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '产品大类',
|
|
|
- prop: 'mainName',
|
|
|
+ prop: 'mainName'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '产品小类',
|
|
|
- prop: 'smallName',
|
|
|
+ prop: 'smallName'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '机型名称',
|
|
|
- prop: 'productName',
|
|
|
+ prop: 'productName'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '负责工程师',
|
|
|
- prop: 'workerName',
|
|
|
+ prop: 'workerName'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '联系电话',
|
|
|
- prop: 'workerMobile',
|
|
|
+ prop: 'workerMobile'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '状态',
|
|
|
- prop: 'status',
|
|
|
+ prop: 'status'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
columnAttributes: {
|
|
|
label: '采集时间',
|
|
|
- prop: 'giveTime',
|
|
|
+ prop: 'giveTime'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -124,7 +131,7 @@ export default {
|
|
|
prop: 'giveAddress',
|
|
|
width: 260
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
repairInfo() {
|
|
@@ -133,79 +140,87 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 14,
|
|
|
attributes: { disabled: true, placeholder: '' },
|
|
|
- formItemAttributes: { label: '故障现象', prop: 'bugRemark' },
|
|
|
+ formItemAttributes: { label: '故障现象', prop: 'bugRemark' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-radio',
|
|
|
options: [
|
|
|
{ label: '是', value: 'YES' },
|
|
|
- { label: '否', value: 'NO' },
|
|
|
+ { label: '否', value: 'NO' }
|
|
|
],
|
|
|
md: 10,
|
|
|
attributes: { disabled: true, placeholder: '' },
|
|
|
- formItemAttributes: { label: '是否质保', prop: 'isDefend' },
|
|
|
+ formItemAttributes: { label: '是否质保', prop: 'isDefend' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 24,
|
|
|
- attributes: { disabled: true, type: "textarea", placeholder: '' },
|
|
|
- formItemAttributes: { label: '备注', prop: 'detailRemark' },
|
|
|
- },
|
|
|
+ attributes: { disabled: true, type: 'textarea', placeholder: '' },
|
|
|
+ formItemAttributes: { label: '备注', prop: 'detailRemark' }
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
INSTALL_pgOrderProductImgs() {
|
|
|
- return [{
|
|
|
- md: 24,
|
|
|
- name: 'slot-component',
|
|
|
- formItemAttributes: {
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- 'label-width': '0px'
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ md: 24,
|
|
|
+ name: 'slot-component',
|
|
|
+ formItemAttributes: {
|
|
|
+ label: '',
|
|
|
+ prop: '',
|
|
|
+ 'label-width': '0px'
|
|
|
+ },
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ return (
|
|
|
+ <ImageUpload
|
|
|
+ fileList={this.formData?.pgOrderProductDetails
|
|
|
+ ?.filter(item => item.type === 'INSTALL')
|
|
|
+ .map(item => ({ url: item.fileUrl, name: item.fileName }))}
|
|
|
+ limit={1000}
|
|
|
+ isEdit={false}
|
|
|
+ viewOnline={false}
|
|
|
+ download={false}
|
|
|
+ showName={true}
|
|
|
+ />
|
|
|
+ )
|
|
|
+ }
|
|
|
},
|
|
|
- render: (h, { props, onInput }) => {
|
|
|
- return (
|
|
|
- <ImageUpload
|
|
|
- fileList={this.formData?.pgOrderProductDetails?.filter((item) => item.type === 'INSTALL').map((item) => ({ url: item.fileUrl, name: item.fileName }))}
|
|
|
- limit={1000}
|
|
|
- isEdit={false}
|
|
|
- viewOnline={false}
|
|
|
- download={false}
|
|
|
- showName={true}
|
|
|
- />
|
|
|
- )
|
|
|
+ {
|
|
|
+ show: this.formData.pgOrderBase && this.formData.pgOrderBase.orderType == 'INSTALL',
|
|
|
+ name: 'el-input',
|
|
|
+ md: 24,
|
|
|
+ attributes: { disabled: true, type: 'textarea', placeholder: '' },
|
|
|
+ formItemAttributes: { label: '备注', prop: 'detailRemark' }
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- show: this.formData.pgOrderBase && this.formData.pgOrderBase.orderType == 'INSTALL',
|
|
|
- name: 'el-input',
|
|
|
- md: 24,
|
|
|
- attributes: { disabled: true, type: "textarea", placeholder: '' },
|
|
|
- formItemAttributes: { label: '备注', prop: 'detailRemark' },
|
|
|
- },]
|
|
|
+ ]
|
|
|
},
|
|
|
BUG_pgOrderProductImgs() {
|
|
|
- return [{
|
|
|
- md: 24,
|
|
|
- name: 'slot-component',
|
|
|
- formItemAttributes: {
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- 'label-width': '0px'
|
|
|
- },
|
|
|
- render: (h, { props, onInput }) => {
|
|
|
- return (
|
|
|
- <ImageUpload
|
|
|
- fileList={this.formData?.pgOrderProductDetails?.filter((item) => item.type === 'BUG').map((item) => ({ url: item.fileUrl, name: item.fileName }))}
|
|
|
- limit={1000}
|
|
|
- isEdit={false}
|
|
|
- viewOnline={false}
|
|
|
- download={false}
|
|
|
- showName={true}
|
|
|
- />
|
|
|
- )
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ md: 24,
|
|
|
+ name: 'slot-component',
|
|
|
+ formItemAttributes: {
|
|
|
+ label: '',
|
|
|
+ prop: '',
|
|
|
+ 'label-width': '0px'
|
|
|
+ },
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ return (
|
|
|
+ <ImageUpload
|
|
|
+ fileList={this.formData?.pgOrderProductDetails
|
|
|
+ ?.filter(item => item.type === 'BUG')
|
|
|
+ .map(item => ({ url: item.fileUrl, name: item.fileName }))}
|
|
|
+ limit={1000}
|
|
|
+ isEdit={false}
|
|
|
+ viewOnline={false}
|
|
|
+ download={false}
|
|
|
+ showName={true}
|
|
|
+ />
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
- },]
|
|
|
- },
|
|
|
+ ]
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
id: {
|
|
@@ -217,14 +232,14 @@ export default {
|
|
|
this.completeDetailData = res.data.map(item => {
|
|
|
return {
|
|
|
...item,
|
|
|
- status: ({ WAIT: "待采集", WAIT_SAVE: "待完善", WAIT_OK: "临时采集", OK: "已采集" })[item.status]
|
|
|
+ status: { WAIT: '待采集', WAIT_SAVE: '待完善', WAIT_OK: '临时采集', OK: '已采集' }[item.status]
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|
|
|
- immediate: true,
|
|
|
+ immediate: true
|
|
|
},
|
|
|
detailId: {
|
|
|
handler(newVal, oldVal) {
|
|
@@ -237,14 +252,14 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- deep: true,
|
|
|
- },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
close() {
|
|
|
this.$data.formData = this.$options.data().formData
|
|
|
- this.detailId = ""
|
|
|
- },
|
|
|
+ this.detailId = ''
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -254,13 +269,13 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
padding-left: 16px;
|
|
|
|
|
|
- ::v-deep &>.zj-page-fill-scroll {
|
|
|
+ ::v-deep & > .zj-page-fill-scroll {
|
|
|
box-sizing: border-box;
|
|
|
padding-right: 16px;
|
|
|
|
|
|
- &>div:nth-child(1) {
|
|
|
+ & > div:nth-child(1) {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|