|
@@ -32,12 +32,13 @@
|
|
<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
|
|
v-model="deptBudgetList.contractNo"
|
|
v-model="deptBudgetList.contractNo"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
- />
|
|
|
|
- <span class="unchangeable">*</span>
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ {{deptBudgetList.contractNo}}
|
|
|
|
+
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--运输方式-->
|
|
<!--运输方式-->
|
|
@@ -50,13 +51,10 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--买方-->
|
|
<!--买方-->
|
|
- <ws-form-item label="买方" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.buyer"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- <span class="unchangeable">*</span>
|
|
|
|
|
|
+ <ws-form-item label="买方" span="1" prop="contractNo">
|
|
|
|
+
|
|
|
|
+ {{deptBudgetList.buyer}}
|
|
|
|
+
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--结算方式-->
|
|
<!--结算方式-->
|
|
@@ -70,12 +68,9 @@
|
|
|
|
|
|
<!--卖方-->
|
|
<!--卖方-->
|
|
<ws-form-item label="卖方" span="1" prop="contractNo">
|
|
<ws-form-item label="卖方" span="1" prop="contractNo">
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.seller"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- <span class="unchangeable">*</span>
|
|
|
|
|
|
+
|
|
|
|
+ {{deptBudgetList.seller}}
|
|
|
|
+
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--货源地-->
|
|
<!--货源地-->
|
|
@@ -205,8 +200,8 @@
|
|
</el-select>
|
|
</el-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
- <!--溢短装(%)-->
|
|
|
|
- <ws-form-item label="溢短装(%))" span="1" prop="contractNo">
|
|
|
|
|
|
+ <!--溢短装(%)-->
|
|
|
|
+ <ws-form-item label="溢短装(%)" span="1" prop="contractNo">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.overShort"
|
|
v-model="deptBudgetList.overShort"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
@@ -253,7 +248,7 @@
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
- <!--合同总价-->
|
|
|
|
|
|
+ <!--合同总价-->
|
|
<ws-form-item label="合同总价" span="1" prop="contractNo">
|
|
<ws-form-item label="合同总价" span="1" prop="contractNo">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.totalContractPrice"
|
|
v-model="deptBudgetList.totalContractPrice"
|
|
@@ -261,7 +256,7 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--签订日期-->
|
|
|
|
|
|
+ <!--签订日期-->
|
|
<ws-form-item label="签订日期" span="1" prop="signingDate">
|
|
<ws-form-item label="签订日期" span="1" prop="signingDate">
|
|
<ws-date-picker
|
|
<ws-date-picker
|
|
:picker-options="pickerBeginDateBefore"
|
|
:picker-options="pickerBeginDateBefore"
|
|
@@ -273,236 +268,205 @@
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- </ws-info-table>
|
|
|
|
- </ws-form>
|
|
|
|
- <!-- <base-card> -->
|
|
|
|
- <div class="wenzi">
|
|
|
|
- <h3>货物信息</h3>
|
|
|
|
- </div>
|
|
|
|
- <div class="center">
|
|
|
|
- <ws-form
|
|
|
|
- ref="deptBudgetList"
|
|
|
|
- :rules="ruleDeptBudget"
|
|
|
|
- :model="deptBudgetList"
|
|
|
|
- >
|
|
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ </ws-form>
|
|
|
|
+ <!-- <base-card> -->
|
|
|
|
+ <div class="wenzi">
|
|
|
|
+ <h3>货物信息</h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="center">
|
|
|
|
+ <ws-form
|
|
|
|
+ ref="deptBudgetList"
|
|
|
|
+ :rules="ruleDeptBudget"
|
|
|
|
+ :model="deptBudgetList"
|
|
|
|
+ >
|
|
<!--货物信息-->
|
|
<!--货物信息-->
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!--货名-->
|
|
<!--货名-->
|
|
- <ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
|
- <ws-select
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.goodsName"
|
|
|
|
- placeholder=""
|
|
|
|
- class="typeselect"
|
|
|
|
- @change="selectpackingMethod"
|
|
|
|
- >
|
|
|
|
- <ws-option
|
|
|
|
- v-for="item in goodnameList"
|
|
|
|
- :key="item.constKey"
|
|
|
|
- :label="item.constValue"
|
|
|
|
- :value="item.constValue"
|
|
|
|
- />
|
|
|
|
- </ws-select>
|
|
|
|
- <span class="unchangeable">*</span>
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
|
+ <!-- <ws-select
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.goodsName"
|
|
|
|
+ placeholder=""
|
|
|
|
+ class="typeselect"
|
|
|
|
+ @change="selectpackingMethod"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in goodnameList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
|
|
+ />
|
|
|
|
+ </ws-select> -->
|
|
|
|
+ {{deptBudgetList.contractGoodsInfo.goodsName}}
|
|
|
|
+
|
|
|
|
+ </ws-form-item>
|
|
|
|
|
|
<!--水分(%)<=-->
|
|
<!--水分(%)<=-->
|
|
- <ws-form-item label="水分(%)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.waterContent"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--品级-->
|
|
|
|
- <ws-form-item label="品级" span="1" prop="grade">
|
|
|
|
- <ws-select
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.grade"
|
|
|
|
- placeholder=""
|
|
|
|
- class="typeselect"
|
|
|
|
- @change="selectgrade"
|
|
|
|
- >
|
|
|
|
- <ws-option
|
|
|
|
- v-for="item in gradeList"
|
|
|
|
- :key="item.constKey"
|
|
|
|
- :label="item.constValue"
|
|
|
|
- :value="item.constValue"
|
|
|
|
|
|
+ <ws-form-item label="水分(%)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.waterContent"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
/>
|
|
/>
|
|
- </ws-select>
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--杂质(%)<=-->
|
|
|
|
- <ws-form-item label="杂质(%)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.impurity"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--容量(克/升)>=-->
|
|
|
|
- <ws-form-item label="容量(克/升)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--霉变粒(%)<=-->
|
|
|
|
- <ws-form-item label="霉变粒(%)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--热损伤(%)<=-->
|
|
|
|
- <ws-form-item label="热损伤(%)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--品级-->
|
|
|
|
+ <ws-form-item label="品级" span="1" prop="grade">
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.grade"
|
|
|
|
+ placeholder=""
|
|
|
|
+ class="typeselect"
|
|
|
|
+ @change="selectgrade"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in gradeList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--杂质(%)<=-->
|
|
|
|
+ <ws-form-item label="杂质(%)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.impurity"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--容量(克/升)>=-->
|
|
|
|
+ <ws-form-item label="容量(克/升)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--霉变粒(%)<=-->
|
|
|
|
+ <ws-form-item label="霉变粒(%)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--热损伤(%)<=-->
|
|
|
|
+ <ws-form-item label="热损伤(%)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
<!--不完整粒(%)<=-->
|
|
<!--不完整粒(%)<=-->
|
|
- <ws-form-item label="不完整粒(%)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <ws-form-item label="不完整粒(%)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
- </ws-form>
|
|
|
|
- </div>
|
|
|
|
- <div class="wenzi">
|
|
|
|
- <h3>流程信息</h3>
|
|
|
|
- </div>
|
|
|
|
- <div class="center">
|
|
|
|
- <ws-form
|
|
|
|
- ref="deptBudgetList"
|
|
|
|
- :rules="ruleDeptBudget"
|
|
|
|
- :model="deptBudgetList"
|
|
|
|
- >
|
|
|
|
|
|
+ </ws-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="wenzi">
|
|
|
|
+ <h3>流程信息</h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="center">
|
|
|
|
+ <ws-form
|
|
|
|
+ ref="deptBudgetList"
|
|
|
|
+ :rules="ruleDeptBudget"
|
|
|
|
+ :model="deptBudgetList"
|
|
|
|
+ >
|
|
<!--流程信息-->
|
|
<!--流程信息-->
|
|
|
|
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!--合同收入(元)-->
|
|
<!--合同收入(元)-->
|
|
- <ws-form-item label="合同收入(元)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--已开发票(元)-->
|
|
|
|
- <ws-form-item label="已开发票(元)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.goodsName"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <ws-form-item label="合同收入(元)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--已开发票(元)-->
|
|
|
|
+ <ws-form-item label="已开发票(元)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.goodsName"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
|
|
<!--费用支出(元)-->
|
|
<!--费用支出(元)-->
|
|
- <ws-form-item label="费用支出(元)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.waterContent"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--未开发票(元)-->
|
|
|
|
- <ws-form-item label="未开发票(元)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.impurity"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <ws-form-item label="费用支出(元)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.waterContent"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--未开发票(元)-->
|
|
|
|
+ <ws-form-item label="未开发票(元)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.impurity"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
<!--未回款(元)-->
|
|
<!--未回款(元)-->
|
|
- <ws-form-item label="未回款(元)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.mildewGrain"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- <!--已完成发货量(吨)-->
|
|
|
|
- <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--双章原件回收情况-->
|
|
|
|
- <ws-form-item label="双章原件回收情况" span="1" prop="grade">
|
|
|
|
- <ws-select
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.grade"
|
|
|
|
- placeholder=""
|
|
|
|
- class="typeselect"
|
|
|
|
- @change="selectpackingMethod"
|
|
|
|
- >
|
|
|
|
- <ws-option
|
|
|
|
- v-for="item in ChapterTwoList"
|
|
|
|
- :key="item.constKey"
|
|
|
|
- :label="item.constValue"
|
|
|
|
- :value="item.constValue"
|
|
|
|
|
|
+ <ws-form-item label="未回款(元)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.mildewGrain"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
/>
|
|
/>
|
|
- </ws-select>
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--已完成发货量(吨)-->
|
|
|
|
+ <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--双章原件回收情况-->
|
|
|
|
+ <ws-form-item label="双章原件回收情况" span="1" prop="grade">
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.contractProcessInfo.grade"
|
|
|
|
+ placeholder=""
|
|
|
|
+ class="typeselect"
|
|
|
|
+ @change="selectpackingMethod"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in ChapterTwoList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
-<<<<<<< HEAD
|
|
|
|
-
|
|
|
|
- </ws-form>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </ws-form>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="wenzi">
|
|
|
|
- <h3>备注信息</h3>
|
|
|
|
- </div>
|
|
|
|
- <div class="ce">
|
|
|
|
- <ws-form
|
|
|
|
- ref="deptBudgetList"
|
|
|
|
- :rules="ruleDeptBudget"
|
|
|
|
- :model="deptBudgetList"
|
|
|
|
- >
|
|
|
|
- <!--备注信息-->
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.remarks"
|
|
|
|
- type="textarea"
|
|
|
|
- row="3"
|
|
|
|
- placeholder="请输入备注信息,不超过200字"
|
|
|
|
- maxlength="200"
|
|
|
|
- />
|
|
|
|
- <ws-upload
|
|
|
|
- ref="upload"
|
|
|
|
- table-name="maintain_work_order"
|
|
|
|
- oss-key="mainPlan"
|
|
|
|
- :comp-id="compId"
|
|
|
|
- :appendix-ids="appendixIdsAdd"
|
|
|
|
- :vesselId="deptBudgetList.addressUrl"
|
|
|
|
- :size-limit="size"
|
|
|
|
- @uploadSuccess="uploadSuccess"
|
|
|
|
- @onChange="onChange"
|
|
|
|
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
|
|
- />
|
|
|
|
- </ws-form>
|
|
|
|
- </div>
|
|
|
|
- <div style="text-align: right; padding: 10px" class="center">
|
|
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
|
|
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
-=======
|
|
|
|
- <div class="wenzi">
|
|
|
|
- <h3>备注信息</h3>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="wenzi">
|
|
|
|
+ <h3>备注信息</h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ce">
|
|
|
|
+ <ws-form
|
|
|
|
+ ref="deptBudgetList"
|
|
|
|
+ :rules="ruleDeptBudget"
|
|
|
|
+ :model="deptBudgetList"
|
|
|
|
+ >
|
|
|
|
+ <!--备注信息-->
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.remarks"
|
|
v-model="deptBudgetList.remarks"
|
|
type="textarea"
|
|
type="textarea"
|
|
@@ -518,12 +482,13 @@
|
|
: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> -->
|
|
|
|
- </ws-info-table>
|
|
|
|
- </ws-form>
|
|
|
|
- <div style="text-align: right; padding: 10px">
|
|
|
|
|
|
+ </ws-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="text-align: right; padding: 10px" class="center">
|
|
<el-button
|
|
<el-button
|
|
class="bg-bottom"
|
|
class="bg-bottom"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -532,18 +497,16 @@
|
|
>提交</el-button
|
|
>提交</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
->>>>>>> 110c456e325af9782535b7bcbce2d1b72d0f4f03
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
// import { getVesselOne } from '@/model/procurement/basic'
|
|
// import { getVesselOne } from '@/model/procurement/basic'
|
|
// import { dayjs } from 'base-core-lib'
|
|
// import { dayjs } from 'base-core-lib'
|
|
-import {
|
|
|
|
- examineList,
|
|
|
|
- editInfo,
|
|
|
|
- packList,
|
|
|
|
-}from '@/model/contarct/index'
|
|
|
|
|
|
+import { examineList, editInfo, packList , xiala,
|
|
|
|
+ addxiala,
|
|
|
|
+ editxiala,
|
|
|
|
+ delxiala,} from '@/model/contarct/index'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
watch: {
|
|
watch: {
|
|
@@ -570,25 +533,39 @@ export default {
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
|
|
tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
|
|
- pickerBeginDateBefore:{},
|
|
|
|
|
|
+ pickerBeginDateBefore: {
|
|
|
|
+ disabledDate: (time) => {
|
|
|
|
+ return time.getTime() > Date.now()
|
|
|
|
+ },
|
|
|
|
+ },
|
|
// selectpackingMethod:{},
|
|
// selectpackingMethod:{},
|
|
- selectunitList:{},
|
|
|
|
- // change:{},
|
|
|
|
- unitList:{},
|
|
|
|
- packtypeList: {},
|
|
|
|
- compId:{},
|
|
|
|
- appendixIdsAdd:{},
|
|
|
|
- size:{},
|
|
|
|
- deptBudgetList: {},
|
|
|
|
|
|
+ selectunitList: {},
|
|
|
|
+ //change:{},
|
|
|
|
+ onChange:{},
|
|
|
|
+ uploadSuccess:{},
|
|
|
|
+ selectgrade:{},
|
|
|
|
+ goodnameList: {},
|
|
|
|
+ selectpackingMethod:{},
|
|
|
|
+ unitList: {},
|
|
|
|
+ packtypeList: [],
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ appendixIdsAdd: '',
|
|
|
|
+ size: 10,
|
|
|
|
+ deptBudgetList: {
|
|
|
|
+ contractGoodsInfo: {
|
|
|
|
+ goodsName: '',
|
|
|
|
+ },
|
|
|
|
+ contractProcessInfo: {},
|
|
|
|
+ },
|
|
ruleDeptBudget: {},
|
|
ruleDeptBudget: {},
|
|
isEdited: false,
|
|
isEdited: false,
|
|
registered: {},
|
|
registered: {},
|
|
selectCrtDuty: {},
|
|
selectCrtDuty: {},
|
|
dutyList: {},
|
|
dutyList: {},
|
|
sexList: {},
|
|
sexList: {},
|
|
- pickerBeginDateBefore: {},
|
|
|
|
selectDuty: {},
|
|
selectDuty: {},
|
|
-
|
|
|
|
|
|
+gradeList:{},
|
|
|
|
+ChapterTwoList:{},
|
|
selectIntendedShip: {},
|
|
selectIntendedShip: {},
|
|
interviewTypeList: {},
|
|
interviewTypeList: {},
|
|
}
|
|
}
|
|
@@ -597,10 +574,10 @@ export default {
|
|
//cg.viewBudget
|
|
//cg.viewBudget
|
|
//cg.viewSpareMoney
|
|
//cg.viewSpareMoney
|
|
// this.getVesselData();
|
|
// this.getVesselData();
|
|
- this.loaddata()
|
|
|
|
- this.editInfo()
|
|
|
|
|
|
+ this.loaddata()
|
|
|
|
+ this.editInfo()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
- console.log(this.$route.params)
|
|
|
|
|
|
+ // console.log(this.$route.params)
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -611,7 +588,7 @@ export default {
|
|
returnsales() {
|
|
returnsales() {
|
|
this.$router.push({ path: 'salesContract' })
|
|
this.$router.push({ path: 'salesContract' })
|
|
},
|
|
},
|
|
- loaddata() {
|
|
|
|
|
|
+ loaddata() {
|
|
// 数据
|
|
// 数据
|
|
examineList({ id: this.$route.params.id })
|
|
examineList({ id: this.$route.params.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
@@ -645,14 +622,121 @@ export default {
|
|
this.ChapterTwoList = response
|
|
this.ChapterTwoList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- editInfo(){
|
|
|
|
- editInfo({
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ getUnitList() {
|
|
|
|
+ xiala({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ constCode: 'TYPEYAN',
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.unitList = response
|
|
|
|
+ let currItem
|
|
|
|
+ this.unitList.forEach((item, index, arr) => {
|
|
|
|
+ item.flag = 'delete'
|
|
|
|
+ if (this.vModel == item.constKey) {
|
|
|
|
+ currItem = item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ //
|
|
|
|
+ if (currItem) {
|
|
|
|
+ this.selectContract(currItem.constValue)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 编辑
|
|
|
|
+ editClick(item, index) {
|
|
|
|
+ const map = JSON.parse(JSON.stringify(item))
|
|
|
|
+ if (Object.is(item.id, 1)) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (Object.is(this.unitList[index].flag, 'delete')) {
|
|
|
|
+ map.flag = 'check'
|
|
|
|
+ this.$set(this.unitList, index, map)
|
|
|
|
+ } else {
|
|
|
|
+ map.flag = 'delete'
|
|
|
|
+ this.$set(this.unitList, index, map)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 删除
|
|
|
|
+ deleteClick(item, index) {
|
|
|
|
+ if (Object.is(item.constKey, 1)) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!item.constValue) {
|
|
|
|
+ this.unitList.splice(index, 1)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ delxiala({ id: this.unitList[index].id })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.getUnitList()
|
|
|
|
+ this.pleaseChoose = ''
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ saveClick(item, index) {
|
|
|
|
+ // console.log(item)
|
|
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ if (Object.is(item.id, 1)) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (Object.is(this.unitList[index].flag, 'delete')) {
|
|
|
|
+ this.$set(this.unitList, index, { flag: 'check' })
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this.unitList, index, { flag: 'delete' })
|
|
|
|
+ }
|
|
|
|
+ if (!item.constValue) {
|
|
|
|
+ this.unitList.splice(index, 1)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (item.flag == 'add') {
|
|
|
|
+ item.constKey = Math.random() * 20
|
|
|
|
+ this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
+ this.trainingMethods.constKey = item.constKey
|
|
|
|
+ this.trainingMethods.constCode = 'TYPEYAN'
|
|
|
|
+ this.trainingMethods.constValue = item.constValue
|
|
|
|
+ this.trainingMethods.id = item.id
|
|
|
|
+ addxiala(this.trainingMethods)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.getUnitList()
|
|
|
|
+ })
|
|
|
|
+ } 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.id = item.id
|
|
|
|
+ editxiala(this.trainingMethods)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.getUnitList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ submit() {
|
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.deptBudgetList.compId = this.compId
|
|
|
|
+ this.deptBudgetList.contractType = 1
|
|
|
|
+ editInfo(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('添加成功')
|
|
|
|
+ this.$router.push({ path: 'salesContract' })
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ editInfo() {
|
|
|
|
+ editInfo({})
|
|
|
|
+ },
|
|
// getList(){}
|
|
// getList(){}
|
|
},
|
|
},
|
|
|
|
+
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|