|
@@ -25,7 +25,7 @@
|
|
<div class="center">
|
|
<div class="center">
|
|
<ws-form
|
|
<ws-form
|
|
ref="deptBudgetList"
|
|
ref="deptBudgetList"
|
|
- :rules="ruleDeptBudget"
|
|
|
|
|
|
+
|
|
:model="deptBudgetList"
|
|
:model="deptBudgetList"
|
|
>
|
|
>
|
|
<!--基本信息-->
|
|
<!--基本信息-->
|
|
@@ -33,27 +33,31 @@
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!--合同编号-->
|
|
<!--合同编号-->
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
- <ws-input
|
|
|
|
|
|
+ <ws-input prop="contractNo1"
|
|
v-model="deptBudgetList.contractNo"
|
|
v-model="deptBudgetList.contractNo"
|
|
- maxlength="100"
|
|
|
|
|
|
+ placeholder="请输入合同编号"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
|
|
+ :rules="ruleDeptBudget"
|
|
/>
|
|
/>
|
|
<span class="unchangeable">*</span>
|
|
<span class="unchangeable">*</span>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--运输方式-->
|
|
<!--运输方式-->
|
|
- <ws-form-item label="运输方式" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.shippingType"
|
|
v-model="deptBudgetList.shippingType"
|
|
|
|
+ placeholder="请输入运输方式"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--买方-->
|
|
<!--买方-->
|
|
- <ws-form-item label="买方" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="买方" span="1" prop="buyer">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.buyer"
|
|
v-model="deptBudgetList.buyer"
|
|
|
|
+ placeholder="请输入买方名称"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -61,18 +65,20 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--结算方式-->
|
|
<!--结算方式-->
|
|
- <ws-form-item label="结算方式" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="结算方式" span="1" prop="settlementMethod">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.settlementMethod"
|
|
v-model="deptBudgetList.settlementMethod"
|
|
|
|
+ placeholder="请输入结算方式"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--卖方-->
|
|
<!--卖方-->
|
|
- <ws-form-item label="卖方" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="卖方" span="1" prop="seller">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.seller"
|
|
v-model="deptBudgetList.seller"
|
|
|
|
+ placeholder="请输入卖方名称"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -80,36 +86,40 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--货源地-->
|
|
<!--货源地-->
|
|
- <ws-form-item label="货源地" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="货源地" span="1" prop="sourceGoods">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.sourceGoods"
|
|
v-model="deptBudgetList.sourceGoods"
|
|
|
|
+ placeholder="请输入货源地"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--买方电话-->
|
|
<!--买方电话-->
|
|
- <ws-form-item label="买方电话" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="买方电话" span="1" prop="buyerPhone">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.buyerPhone"
|
|
v-model="deptBudgetList.buyerPhone"
|
|
|
|
+ placeholder="请输入买方电话"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--交货地-->
|
|
<!--交货地-->
|
|
- <ws-form-item label="交货地" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="交货地" span="1" prop="placeDelivery">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.placeDelivery"
|
|
v-model="deptBudgetList.placeDelivery"
|
|
|
|
+ placeholder="请输入交货地"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--卖方电话-->
|
|
<!--卖方电话-->
|
|
- <ws-form-item label="卖方电话" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.sellerPhone"
|
|
v-model="deptBudgetList.sellerPhone"
|
|
|
|
+ placeholder="请输入卖方电话"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -133,9 +143,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--重量(吨)-->
|
|
<!--重量(吨)-->
|
|
- <ws-form-item label="重量(吨)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.weight"
|
|
v-model="deptBudgetList.weight"
|
|
|
|
+ placeholder="请输入重量(吨)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -209,9 +220,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--溢短装(%)-->
|
|
<!--溢短装(%)-->
|
|
- <ws-form-item label="溢短装(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="溢短装(%)" span="1" prop="overShort">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.overShort"
|
|
v-model="deptBudgetList.overShort"
|
|
|
|
+ placeholder="请输入溢短装比例(%)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -234,9 +246,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--合同单价(元/吨)-->
|
|
<!--合同单价(元/吨)-->
|
|
- <ws-form-item label="合同单价(元/吨)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="合同单价(元/吨)" span="1" prop="unitContractPrice">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.unitContractPrice"
|
|
v-model="deptBudgetList.unitContractPrice"
|
|
|
|
+ placeholder="请输入合同单价"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -257,9 +270,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--合同总价-->
|
|
<!--合同总价-->
|
|
- <ws-form-item label="合同总价" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="合同总价" span="1" prop="totalContractPrice">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.totalContractPrice"
|
|
v-model="deptBudgetList.totalContractPrice"
|
|
|
|
+ placeholder="请输入合同总价"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -311,9 +325,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--水分(%)<=-->
|
|
<!--水分(%)<=-->
|
|
- <ws-form-item label="水分(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="水分(%)" span="1" prop="waterContent">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.waterContent"
|
|
v-model="deptBudgetList.contractGoodsInfo.waterContent"
|
|
|
|
+ placeholder="请输入水分占比"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -337,44 +352,49 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--杂质(%)<=-->
|
|
<!--杂质(%)<=-->
|
|
- <ws-form-item label="杂质(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="杂质(%)" span="1" prop="impurity">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.impurity"
|
|
v-model="deptBudgetList.contractGoodsInfo.impurity"
|
|
|
|
+ placeholder="请输入杂质占比(%)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--容量(克/升)>=-->
|
|
<!--容量(克/升)>=-->
|
|
- <ws-form-item label="容量(克/升)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="容量(克/升)" span="1" prop="bulkDensity">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
|
|
v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
|
|
|
|
+ placeholder="请输入容重"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--霉变粒(%)<=-->
|
|
<!--霉变粒(%)<=-->
|
|
- <ws-form-item label="霉变粒(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
|
|
v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
|
|
|
|
+ placeholder="请输入霉变粒占比(%)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--热损伤(%)<=-->
|
|
<!--热损伤(%)<=-->
|
|
- <ws-form-item label="热损伤(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
|
|
v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
|
|
|
|
+ placeholder="请输入输入热损伤占比(%)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--不完整粒(%)<=-->
|
|
<!--不完整粒(%)<=-->
|
|
- <ws-form-item label="不完整粒(%)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="不完整粒(%)" span="1" prop="imperfectGrain">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
|
|
v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
|
|
|
|
+ placeholder="请输入不完整粒占比(%)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -396,54 +416,60 @@
|
|
|
|
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!--合同收入(元)-->
|
|
<!--合同收入(元)-->
|
|
- <ws-form-item label="合同收入(元)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
|
|
v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
|
|
|
|
+ placeholder="请输入合同收入(元)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--已开发票(元)-->
|
|
<!--已开发票(元)-->
|
|
- <ws-form-item label="已开发票(元)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.goodsName"
|
|
v-model="deptBudgetList.contractProcessInfo.goodsName"
|
|
|
|
+ placeholder="请输入已开发票(元)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--费用支出(元)-->
|
|
<!--费用支出(元)-->
|
|
- <ws-form-item label="费用支出(元)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="费用支出(元)" span="1" prop="waterContent">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.waterContent"
|
|
v-model="deptBudgetList.contractProcessInfo.waterContent"
|
|
|
|
+ placeholder="请输入费用支出(元)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--未开发票(元)-->
|
|
<!--未开发票(元)-->
|
|
- <ws-form-item label="未开发票(元)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="未开发票(元)" span="1" prop="impurity">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.impurity"
|
|
v-model="deptBudgetList.contractProcessInfo.impurity"
|
|
|
|
+ placeholder="请输入未开发票(元)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--未回款(元)-->
|
|
<!--未回款(元)-->
|
|
- <ws-form-item label="未回款(元)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.mildewGrain"
|
|
v-model="deptBudgetList.contractProcessInfo.mildewGrain"
|
|
|
|
+ placeholder="请输入未回款(元)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--已完成发货量(吨)-->
|
|
<!--已完成发货量(吨)-->
|
|
- <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="已完成发货量(吨)" span="1" prop="imperfectGrain">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
|
|
v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
|
|
|
|
+ placeholder="请输入已完成发货量(吨)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
@@ -500,7 +526,7 @@
|
|
</ws-form>
|
|
</ws-form>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
|
|
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="submit(deptBudgetList)"
|
|
>提交</el-button
|
|
>提交</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -521,9 +547,8 @@ import WsUpload from '@/components/WsUpload'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
- components:{
|
|
|
|
- WsUpload,
|
|
|
|
-
|
|
|
|
|
|
+ components: {
|
|
|
|
+ WsUpload,
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
vesselId(val) {
|
|
vesselId(val) {
|
|
@@ -584,7 +609,13 @@ export default {
|
|
// selectCrtDuty: {},
|
|
// selectCrtDuty: {},
|
|
// dutyList: {},
|
|
// dutyList: {},
|
|
// sexList: {},
|
|
// sexList: {},
|
|
- ruleDeptBudget: {},
|
|
|
|
|
|
+ ruleDeptBudget: {
|
|
|
|
+ contractNo: [
|
|
|
|
+ { required: true, message: '请输入活动名称', trigger: 'blur' },
|
|
|
|
+ { min: 6, max: 20, message: '长度在 6 到 20 个字符', trigger: 'blur' }
|
|
|
|
+ ],
|
|
|
|
+
|
|
|
|
+ },
|
|
selectIntendedShip: {},
|
|
selectIntendedShip: {},
|
|
interviewTypeList: {},
|
|
interviewTypeList: {},
|
|
}
|
|
}
|
|
@@ -670,7 +701,133 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
submit() {
|
|
submit() {
|
|
|
|
+ if(!this.deptBudgetList.contractNo){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入合同编号',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!this.deptBudgetList.shippingType){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入运输方式!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!this. deptBudgetList.buyer){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入买方名称!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.seller){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入卖方名称!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!this.deptBudgetList.buyerPhone){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入买方电话!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(isNaN(this.deptBudgetList.buyerPhone)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'输入买方电话有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!this.deptBudgetList.sellerPhone){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入卖方电话!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(isNaN(this.deptBudgetList.sellerPhone)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'输入卖方电话有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this. deptBudgetList.settlementMethod){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入结算方式!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!this.deptBudgetList.sourceGoods){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入货源地!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.placeDelivery){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入交货地!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.weight){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请输入重量!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(isNaN(this.deptBudgetList.weight)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'输入重量有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.overShort && isNaN(this.deptBudgetList.overShort)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'溢短装输入有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.unitContractPrice && isNaN(this.deptBudgetList.unitContractPrice)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'合同单价输入有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.totalContractPrice && isNaN(this.deptBudgetList.totalContractPrice)){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'合同总价输入有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ //时间
|
|
|
|
+ if(this.deptBudgetList.deliveryDateStart>this.deptBudgetList.deliveryDateEnd){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'时间输入有误!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.deptBudgetList.compId = this.compId
|
|
this.deptBudgetList.compId = this.compId
|
|
@@ -686,7 +843,11 @@ export default {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
+ resetForm(deptBudgetList) {
|
|
|
|
+ this.$refs[deptBudgetList].resetFields();
|
|
|
|
+ },
|
|
saveClick(item, index) {
|
|
saveClick(item, index) {
|
|
console.log(item)
|
|
console.log(item)
|
|
|
|
|
|
@@ -731,7 +892,7 @@ export default {
|
|
// let key = this.unitList.find((item) => item.constValue === val).constKey
|
|
// let key = this.unitList.find((item) => item.constValue === val).constKey
|
|
// this.pleaseChoose = val
|
|
// this.pleaseChoose = val
|
|
// },
|
|
// },
|
|
-
|
|
|
|
|
|
+
|
|
handleExamine() {},
|
|
handleExamine() {},
|
|
approve() {},
|
|
approve() {},
|
|
// returnsales() {
|
|
// returnsales() {
|
|
@@ -967,4 +1128,29 @@ export default {
|
|
overflow: scroll;
|
|
overflow: scroll;
|
|
height: 93vh;
|
|
height: 93vh;
|
|
}
|
|
}
|
|
|
|
+.unchangeable {
|
|
|
|
+ position: absolute;
|
|
|
|
+ width: 9px;
|
|
|
|
+ height: 22px;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #ff2727;
|
|
|
|
+ line-height: 22px;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ right: 14px;
|
|
|
|
+}
|
|
|
|
+/deep/.el-input,
|
|
|
|
+/deep/.el-date-editor {
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ width: 232px;
|
|
|
|
+ left: 21px;
|
|
|
|
+}
|
|
|
|
+/deep/.el-textarea {
|
|
|
|
+ width: 900px;
|
|
|
|
+ margin: 0px;
|
|
|
|
+}
|
|
|
|
+/deep/el-date-editor--date {
|
|
|
|
+ width: 200px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|