|
@@ -31,7 +31,13 @@
|
|
|
</el-col>
|
|
|
<el-col :span="7" class="flex-box">
|
|
|
<div class="flex-box-title">经销商编号</div>
|
|
|
- <el-input v-model="formData.customerNumber2" class="my-input" placeholder="请填写" size="mini" clearable />
|
|
|
+ <el-input
|
|
|
+ v-model="formData.customerNumber2"
|
|
|
+ class="my-input"
|
|
|
+ placeholder="请填写"
|
|
|
+ size="mini"
|
|
|
+ clearable
|
|
|
+ />
|
|
|
</el-col>
|
|
|
<el-col :span="7" class="flex-box">
|
|
|
<div class="flex-box-title">经销商名称</div>
|
|
@@ -61,7 +67,7 @@
|
|
|
<el-input
|
|
|
v-model="formData.note"
|
|
|
placeholder="请填写"
|
|
|
- :disabled="formData.examineNote !== 'NOTE_3' "
|
|
|
+ :disabled="formData.examineNote !== 'NOTE_3'"
|
|
|
size="mini"
|
|
|
clearable
|
|
|
/>
|
|
@@ -92,7 +98,14 @@
|
|
|
class="elImageClose"
|
|
|
/>
|
|
|
<div
|
|
|
- style="display: flex; width: 120px; height: 120px; align-items: center; justify-content: center;cursor: pointer;"
|
|
|
+ style="
|
|
|
+ display: flex;
|
|
|
+ width: 120px;
|
|
|
+ height: 120px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
+ "
|
|
|
@click="openPdf(item)"
|
|
|
>
|
|
|
<img v-if="checkFileType(item.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
|
|
@@ -127,6 +140,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getLoginHomeDecorationList } from '@/api/homeDecoration'
|
|
|
+import { getLoginCrossDistrictList } from '@/api/crossDistrict'
|
|
|
+import { getLoginFrockList } from '@/api/frock'
|
|
|
import ImageUpload from '@/components/Common/image-upload.vue'
|
|
|
import LoginSuccess from './loginSuccess.vue'
|
|
|
export default {
|
|
@@ -168,7 +184,12 @@ export default {
|
|
|
showDialog: false
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ watch: {
|
|
|
+ async 'formData.id'(newValue, oldValue) {
|
|
|
+ if (newValue) {
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
handleSuccess(val) {
|
|
@@ -216,6 +237,33 @@ export default {
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
document.body.removeChild(link)
|
|
|
+ },
|
|
|
+ getData() {
|
|
|
+ if (!this.formData.successLoginProject) return
|
|
|
+ const params = {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [
|
|
|
+ {
|
|
|
+ param: 'a.project_no',
|
|
|
+ compare: 'like',
|
|
|
+ value: this.formData.successLoginProject
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ const objFn = {
|
|
|
+ home: getLoginHomeDecorationList,
|
|
|
+ cross: getLoginCrossDistrictList,
|
|
|
+ frock: getLoginFrockList
|
|
|
+ }
|
|
|
+ objFn[this.pageType](params).then(res => {
|
|
|
+ if (res.data.records && res.data.records.length) {
|
|
|
+ this.formData.customerNumber2 = res.data.records[0].customerNumber
|
|
|
+ this.formData.customerName2 = res.data.records[0].customerName
|
|
|
+ this.formData.serviceName2 = res.data.records[0].serviceName
|
|
|
+ this.formData.serviceNumber2 = res.data.records[0].serviceNumber
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|