|
@@ -438,7 +438,8 @@ const formConfig = computed(() => {
|
|
|
label: "账期",
|
|
|
itemWidth: 33,
|
|
|
controls: false,
|
|
|
- precision: 0,
|
|
|
+ precision: 2,
|
|
|
+ min: 0,
|
|
|
style: {
|
|
|
width: "100%",
|
|
|
"margin-right": "10px",
|
|
@@ -451,7 +452,8 @@ const formConfig = computed(() => {
|
|
|
label: "退换货期限",
|
|
|
itemWidth: 33,
|
|
|
controls: false,
|
|
|
- precision: 0,
|
|
|
+ precision: 2,
|
|
|
+ min: 0,
|
|
|
style: {
|
|
|
width: "100%",
|
|
|
"text-align": "left",
|
|
@@ -528,21 +530,23 @@ const submitForm = () => {
|
|
|
id: x.id,
|
|
|
fileName: x.fileName,
|
|
|
})) || [];
|
|
|
- // if (JSON.parse(formData.data.victoriatouristJson).accountPeriod == "") {
|
|
|
- // return ElMessage({
|
|
|
- // message: "请输入账期!",
|
|
|
- // type: "info",
|
|
|
- // });
|
|
|
- // }
|
|
|
- // if (JSON.parse(formData.data.victoriatouristJson).returnPeriod == "") {
|
|
|
- // return ElMessage({
|
|
|
- // message: "请输入退换货期限!",
|
|
|
- // type: "info",
|
|
|
- // });
|
|
|
- // }
|
|
|
- // formData.data.victoriatouristJson = JSON.stringify(
|
|
|
- // formData.data.victoriatouristJson
|
|
|
- // );
|
|
|
+ const obj = JSON.parse(formData.data.victoriatouristJson);
|
|
|
+ console.log(obj, "ss");
|
|
|
+ if (obj.accountPeriod === undefined || obj.accountPeriod === "") {
|
|
|
+ formData.data.victoriatouristJson = obj;
|
|
|
+ return ElMessage({
|
|
|
+ message: "请输入账期!",
|
|
|
+ type: "info",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (obj.returnPeriod === undefined || obj.returnPeriod === "") {
|
|
|
+ formData.data.victoriatouristJson = obj;
|
|
|
+ return ElMessage({
|
|
|
+ message: "请输入退换货期限!",
|
|
|
+ type: "info",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ formData.data.victoriatouristJson = JSON.stringify(obj);
|
|
|
submitLoading.value = true;
|
|
|
proxy.post("/supplierInfo/" + modalType.value, formData.data).then(
|
|
|
(res) => {
|
|
@@ -564,13 +568,10 @@ const submitForm = () => {
|
|
|
|
|
|
const getDtl = (row) => {
|
|
|
modalType.value = "edit";
|
|
|
- proxy.post("/supplierInfo/detail", { id: row.id }).then((res) => {
|
|
|
+ proxy.post("/supplierInfo/detailByWdly", { id: row.id }).then((res) => {
|
|
|
proxy
|
|
|
.post("/fileInfo/getList", { businessIdList: [row.id] })
|
|
|
.then((fileObj) => {
|
|
|
- console.log(fileObj[row.id], "wss");
|
|
|
- console.log(res, "wss11");
|
|
|
-
|
|
|
fileList.value = fileObj[row.id] || [];
|
|
|
fileListCopy.value = [...fileList.value];
|
|
|
getCityData(res.countryId, "20");
|