|
|
@@ -40,17 +40,19 @@ Page({
|
|
|
valueName: "itemtype",
|
|
|
checking: "base",
|
|
|
required: true
|
|
|
- }, /* {
|
|
|
- label: "电话",
|
|
|
+ }, {
|
|
|
+ label: "折扣(%)",
|
|
|
error: false,
|
|
|
errMsg: "",
|
|
|
+ hint: "请输入0-100整数!",
|
|
|
type: "number",
|
|
|
value: "",
|
|
|
- valueName: "telephone",
|
|
|
- placeholder: "固定电话 例:0573-12345678",
|
|
|
- checking: "base",
|
|
|
- required: false
|
|
|
- }, */ {
|
|
|
+ placeholder: "请填写折扣(%)",
|
|
|
+ valueName: "discountrate", //绑定的字段名称
|
|
|
+ required: false, //必填
|
|
|
+ checking: `^([1-9]?\\d|100)$`, //0-100%
|
|
|
+ slot: "discountrate"
|
|
|
+ }, {
|
|
|
label: "报价日期",
|
|
|
error: false,
|
|
|
errMsg: "",
|
|
|
@@ -156,6 +158,9 @@ Page({
|
|
|
required: true
|
|
|
};
|
|
|
form.splice(1, form[1].label == "选择客户" ? 1 : 0, obj);
|
|
|
+ this.setData({
|
|
|
+ address: data.item.province + data.item.city + data.item.county + data.item.address
|
|
|
+ })
|
|
|
break;
|
|
|
case "sys_enterpriseid":
|
|
|
obj = {
|
|
|
@@ -205,6 +210,7 @@ Page({
|
|
|
content.contactsid = content.contactsid ? content.contactsid[1][0] : 0;
|
|
|
content.begdate = content.invaliddate[0];
|
|
|
content.enddate = content.invaliddate[1];
|
|
|
+ content.address = this.data.address;
|
|
|
delete(content.invaliddate)
|
|
|
_Http.basic({
|
|
|
"id": 20221020164803,
|