|
@@ -137,7 +137,7 @@
|
|
v-model="deptBudgetList.packingMethod"
|
|
v-model="deptBudgetList.packingMethod"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
- @change="selectCrtDuty"
|
|
|
|
|
|
+ @change="selectpackingMethod"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
v-for="item in packtypeList"
|
|
v-for="item in packtypeList"
|
|
@@ -163,10 +163,10 @@
|
|
span="1"
|
|
span="1"
|
|
prop="acceptanceMethod"
|
|
prop="acceptanceMethod"
|
|
>
|
|
>
|
|
- <el-select v-model="pleaseChoose" :placeholder="getPleaseChoose" style="width: 100%;" filterable @change="selectContract">
|
|
|
|
|
|
+ <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%;" filterable @change="selectunitList">
|
|
<el-option v-for="(item,index) in unitList"
|
|
<el-option v-for="(item,index) in unitList"
|
|
:key="item.constValue"
|
|
:key="item.constValue"
|
|
- :label="getLanguage !== 'en' ? item.constValue : item.constValueEn"
|
|
|
|
|
|
+ :label=" item.constValue"
|
|
:value="item.constValue">
|
|
:value="item.constValue">
|
|
<span class="unit-left" style="float: left">
|
|
<span class="unit-left" style="float: left">
|
|
<span v-if="item.flag == 'delete'"> {{ item.constValue }}</span>
|
|
<span v-if="item.flag == 'delete'"> {{ item.constValue }}</span>
|
|
@@ -201,7 +201,7 @@
|
|
prop="overShort"
|
|
prop="overShort"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.weight"
|
|
|
|
|
|
+ v-model="deptBudgetList.overShort"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -289,7 +289,7 @@
|
|
v-model="deptBudgetList.contractGoodsInfo.goodsName"
|
|
v-model="deptBudgetList.contractGoodsInfo.goodsName"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
- @change="selectCrtDuty"
|
|
|
|
|
|
+ @change="selectgoodsName"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
v-for="item in goodnameList"
|
|
v-for="item in goodnameList"
|
|
@@ -319,13 +319,13 @@
|
|
v-model="deptBudgetList.contractGoodsInfo.grade"
|
|
v-model="deptBudgetList.contractGoodsInfo.grade"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
- @change="selectCrtDuty"
|
|
|
|
|
|
+ @change="selectgrade"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
v-for="item in gradeList"
|
|
v-for="item in gradeList"
|
|
- :key="item.value"
|
|
|
|
- :label="item.value"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ :key="item.constValue"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
/>
|
|
/>
|
|
</ws-select>
|
|
</ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
@@ -335,7 +335,7 @@
|
|
prop="interviewDates"
|
|
prop="interviewDates"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.contractGoodsInfo.waterContent"
|
|
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.impurity"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -467,13 +467,13 @@
|
|
v-model="deptBudgetList.contractProcessInfo.grade"
|
|
v-model="deptBudgetList.contractProcessInfo.grade"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
- @change="selectCrtDuty"
|
|
|
|
|
|
+ @change="selectChapterTwo"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
- v-for="item in taskTypeList"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.value"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ v-for="item in ChapterTwoList"
|
|
|
|
+ :key="item.constValue"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
/>
|
|
/>
|
|
</ws-select>
|
|
</ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
@@ -489,6 +489,8 @@
|
|
:appendix-ids="appendixIdsAdd"
|
|
:appendix-ids="appendixIdsAdd"
|
|
:vesselId="deptBudgetList.addressUrl"
|
|
:vesselId="deptBudgetList.addressUrl"
|
|
:size-limit='size'
|
|
:size-limit='size'
|
|
|
|
+ @uploadSuccess="uploadSuccess"
|
|
|
|
+ @onChange="onChange"
|
|
accept='.jpg, .jpeg, .png, .pdf, .doc, .zip, .rar' />
|
|
accept='.jpg, .jpeg, .png, .pdf, .doc, .zip, .rar' />
|
|
</base-card>
|
|
</base-card>
|
|
</ws-form>
|
|
</ws-form>
|
|
@@ -551,6 +553,7 @@ export default {
|
|
},
|
|
},
|
|
contractProcessInfo: {},
|
|
contractProcessInfo: {},
|
|
},
|
|
},
|
|
|
|
+ appendixIdsAdd: '',
|
|
mainReportAdd: {},
|
|
mainReportAdd: {},
|
|
trainingMethods: {},
|
|
trainingMethods: {},
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
@@ -558,8 +561,10 @@ export default {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
packtypeList: [],
|
|
packtypeList: [],
|
|
goodnameList: [],
|
|
goodnameList: [],
|
|
|
|
+ ChapterTwoList: [],
|
|
unitList: [],
|
|
unitList: [],
|
|
gradeList: [],
|
|
gradeList: [],
|
|
taskTypeList: [
|
|
taskTypeList: [
|
|
@@ -603,11 +608,41 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.gradeList = response
|
|
this.gradeList = response
|
|
})
|
|
})
|
|
|
|
+ // 双章
|
|
|
|
+ packList({ constId: 'CON4' })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.ChapterTwoList = response
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 上传附件
|
|
|
|
+ uploadSuccess(data, files, url) {
|
|
|
|
+ console.log(data, files, url)
|
|
|
|
+
|
|
|
|
+ // this.deptBudgetList.
|
|
|
|
+ // this.formData.append('files', files)
|
|
|
|
+ // this.feedbackObj.uploadNameAttachment = data.appendixName
|
|
|
|
+ // this.feedbackObj.pathUploadAttachment = data.appendixPath
|
|
|
|
+ // // this.newAppendixs = files
|
|
|
|
+ // this.onChangeFlag = true
|
|
|
|
+ },
|
|
|
|
+ onChange(files) {
|
|
|
|
+ this.fileNum = files
|
|
|
|
+ this.$refs.upload.handleSaveBill().then((res) => {
|
|
|
|
+ console.log(files)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- console.log(this.deptBudgetList)
|
|
|
|
|
|
+ this.deptBudgetList.compId = this.compId
|
|
|
|
+ this.deptBudgetList.contractType = 2
|
|
|
|
+ addList(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('添加成功')
|
|
|
|
+ this.$router.push({ path: 'purchaseContract' })
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
return false
|
|
return false
|
|
@@ -644,7 +679,43 @@ export default {
|
|
returnsales() {
|
|
returnsales() {
|
|
this.$router.push({ path: 'purchaseContract' })
|
|
this.$router.push({ path: 'purchaseContract' })
|
|
},
|
|
},
|
|
- selectCrtDuty() {},
|
|
|
|
|
|
+ selectChapterTwo(e) {
|
|
|
|
+ for (var i = 0; i < this.ChapterTwoList.length; i++) {
|
|
|
|
+ if (this.ChapterTwoList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectunitList(e) {
|
|
|
|
+ for (var i = 0; i < this.unitList.length; i++) {
|
|
|
|
+ if (this.unitList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.packingMethodKey = this.unitList[i].constKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectgrade(e) {
|
|
|
|
+ for (var i = 0; i < this.gradeList.length; i++) {
|
|
|
|
+ if (this.gradeList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.gradeKey = this.gradeList[i].constKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectgoodsName(e) {
|
|
|
|
+ for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
|
+ if (this.goodnameList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectpackingMethod(e) {
|
|
|
|
+ for (var i = 0; i < this.packtypeList.length; i++) {
|
|
|
|
+ if (this.packtypeList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.acceptanceMethodKey = this.packtypeList[
|
|
|
|
+ i
|
|
|
|
+ ].constKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
addClick() {
|
|
addClick() {
|
|
this.unitList.push({
|
|
this.unitList.push({
|
|
flag: 'add',
|
|
flag: 'add',
|
|
@@ -679,7 +750,10 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.getUnitList()
|
|
this.getUnitList()
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
|
|
+ } else if (item.flag == 'check') {
|
|
|
|
+ this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
+ this.trainingMethods.constKey = item.constKey
|
|
|
|
+ this.trainingMethods.constCode = 'TYPEYAN'
|
|
this.trainingMethods.constValue = item.constValue
|
|
this.trainingMethods.constValue = item.constValue
|
|
this.trainingMethods.id = item.id
|
|
this.trainingMethods.id = item.id
|
|
editxiala(this.trainingMethods)
|
|
editxiala(this.trainingMethods)
|