|
@@ -159,7 +159,7 @@
|
|
|
width="150px"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="materialSpe" label="物资规格" align="center">
|
|
|
+ <el-table-column prop="materialSpe" label="物资规格" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="materialNum"
|
|
@@ -299,6 +299,19 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="truckNo" label="车序号"> </el-table-column>
|
|
|
<el-table-column prop="consigneeTel" label="收货客户电话" width="120px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ style="width:120px"
|
|
|
+ v-model="scope.row.consigneeTel"
|
|
|
+ placeholder="请输入电话号码"
|
|
|
+ ></el-input>
|
|
|
+ <el-button
|
|
|
+ @click="updateconsigneeTel(scope.row)"
|
|
|
+ type="primary"
|
|
|
+ v-if="scope.row.isconsigneeTelShow == 1"
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="isSelfMention" label="是否自提" align="center">
|
|
|
</el-table-column>
|
|
@@ -702,6 +715,7 @@ export default {
|
|
|
this.$set(item, "isTelShow", 0);
|
|
|
this.$set(item, "isAddressShow", 0);
|
|
|
this.$set(item, "isNumShow", 0);
|
|
|
+ this.$set(item, "isconsigneeTelShow", 0);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -725,6 +739,10 @@ export default {
|
|
|
this.$set(row, "isNumShow", 1);
|
|
|
this.clickIndex = row.group;
|
|
|
}
|
|
|
+ if (column.property == "consigneeTel") {
|
|
|
+ this.$set(row, "isconsigneeTelShow", 1);
|
|
|
+ this.clickIndex = row.group;
|
|
|
+ }
|
|
|
},
|
|
|
//承运商弹出层
|
|
|
handleSelectCarrier(row, index, item) {
|
|
@@ -915,6 +933,41 @@ export default {
|
|
|
loading.close();
|
|
|
});
|
|
|
},
|
|
|
+ //修改收货客户电话
|
|
|
+ updateconsigneeTel(row) {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "修改电话号码中",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
|
+ });
|
|
|
+ if (row.consigneeTel == null || row.consigneeTel == "") {
|
|
|
+ this.$message.error("电话号码不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.axios
|
|
|
+ .post("/api/v1/ams/updateConsigneeTel", {
|
|
|
+ saleOrderNo:row.saleOrderNo,
|
|
|
+ saleMaterialId:row.saleMaterialId,
|
|
|
+ consigneeTel:row.consigneeTel
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code == "200") {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.getSteelReport();
|
|
|
+ loading.close();
|
|
|
+ } else {
|
|
|
+ this.$message.error("修改失败");
|
|
|
+ this.getSteelReport();
|
|
|
+ loading.close();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message.error("修改失败");
|
|
|
+ this.getSteelReport();
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ },
|
|
|
//关闭车辆金蝶分录
|
|
|
deleteEasEntryId(row) {
|
|
|
this.$confirm("确定关闭该车金蝶分录吗?", "提示", {
|