|
@@ -8,7 +8,7 @@
|
|
|
:loading="loading"
|
|
|
:selectConfig="selectConfig"
|
|
|
highlight-current-row
|
|
|
- :statConfig="statConfig"
|
|
|
+ :statConfig='statConfig'
|
|
|
:action-list="[
|
|
|
{
|
|
|
text: '创建合同',
|
|
@@ -400,30 +400,30 @@ const config = computed(() => {
|
|
|
},
|
|
|
}
|
|
|
: {},
|
|
|
- // row.issue && row.issue === "0" && row.status == 30
|
|
|
- // ? {
|
|
|
- // attrs: {
|
|
|
- // label: "下发交接单",
|
|
|
- // type: "primary",
|
|
|
- // text: true,
|
|
|
- // },
|
|
|
- // el: "button",
|
|
|
- // click() {
|
|
|
- // ElMessageBox.confirm("是否确认下发交接单?", "提示", {
|
|
|
- // confirmButtonText: "确定",
|
|
|
- // cancelButtonText: "取消",
|
|
|
- // type: "warning",
|
|
|
- // }).then(() => {
|
|
|
- // proxy
|
|
|
- // .post("/contract/edit", { id: row.id, issue: 1 })
|
|
|
- // .then(() => {
|
|
|
- // ElMessage({ message: "下发成功", type: "success" });
|
|
|
- // getList();
|
|
|
- // });
|
|
|
- // });
|
|
|
- // },
|
|
|
- // }
|
|
|
- // : {},
|
|
|
+ row.issue && row.issue === "0" && row.status == 30
|
|
|
+ ? {
|
|
|
+ attrs: {
|
|
|
+ label: "下发交接单",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ ElMessageBox.confirm("是否确认下发交接单?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ proxy
|
|
|
+ .post("/contract/edit", { id: row.id, issue: 1 })
|
|
|
+ .then(() => {
|
|
|
+ ElMessage({ message: "下发成功", type: "success" });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ }
|
|
|
+ : {},
|
|
|
row.status == 30
|
|
|
? {
|
|
|
attrs: {
|
|
@@ -585,19 +585,20 @@ const getList = async (req) => {
|
|
|
});
|
|
|
};
|
|
|
const statConfig = computed(() => {
|
|
|
- return [
|
|
|
- {
|
|
|
- label: "合计",
|
|
|
- data: [],
|
|
|
- },
|
|
|
- ];
|
|
|
-});
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ label: '合计',
|
|
|
+ data:[],
|
|
|
+ },
|
|
|
+
|
|
|
+ ]
|
|
|
+})
|
|
|
getDict();
|
|
|
if (route.query.code) {
|
|
|
sourceList.value.pagination.keyword = route.query.code;
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
- getList();
|
|
|
+ getList()
|
|
|
})
|
|
|
const getTotal = () => {
|
|
|
proxy.post("/contract/getHeadCustomerStatistics",sourceList.value.pagination).then((res) => {
|
|
@@ -606,6 +607,9 @@ const getTotal = () => {
|
|
|
label: "合计",
|
|
|
data: [
|
|
|
{
|
|
|
+ label:'数量',
|
|
|
+ num:res.data.sumQuantity,
|
|
|
+ color:'rgb(171 0 255)',
|
|
|
label: "数量",
|
|
|
num: res.sumQuantity,
|
|
|
color: "rgb(171 0 255)",
|